import getopt
import sys
import time
import datetime









def doTask(URL, machine):

    now_time=datetime.datetime.now()
    nnow = (now_time+datetime.timedelta(hours=-4)).strftime('%Y-%m-%d %H:%M:%S')

    print(nnow)
    return 1
    

    date_1 = datetime.datetime.now()
    date_2 = date_1 + timedelta(hours=-4)
    print(date_2.strftime("%Y-%m-%d %H:%M:%S"))
    return 1;
    sql = " select min(id),max(id) from ap_model_style_special where model_id = %s "
    cur.execute(sql, (101))
    styleListSpecial = cur.fetchone()
    targetId = random.randint(styleListSpecial[0],styleListSpecial[1])
    sql = " select img from ap_model_style_special where id = %s "
    cur.execute(sql, (targetId))
    info = cur.fetchone()
    print(info[0])



